package com.atguigu.dao;

import com.atguigu.pojo.Book;

import java.util.List;

/**
 * @Author 周轩霆
 * @Description 标准的增删改查
 * @Date 14:50 2022/4/16
 * @Param
 * @return
 */
public interface BookDao {

    public int addBook(Book book);

    public int deleteBookById(Integer id);

    public int updateBook(Book book);

    public Book queryBookById(Integer id);

    public List<Book> queryBooks();


    Integer queryForPageTotalCount();


    List<Book> queryForPageItems(int begin, int pageSize);

    Integer queryForPageTotalByPrice(int min, int max);

    List<Book> queryForPageByPrice(int begin, int pageSize, int min, int max);
}
